﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ICeFramework.Win.UI.MDI
{
    public class MDIChildFormCollection
    {
        private IList<Form> _forms = new List<Form>();
        internal IList<Form> Forms
        {
            get { return _forms; }
            set { _forms = value; }
        }

        private IList<Type> _formTypes = new List<Type>();
        internal IList<Type> FormTypes
        {
            get { return _formTypes; }
            set { _formTypes = value; }
        }

        private IList<Button> _buttons = new List<Button>();
        internal IList<Button> Buttons
        {
            get { return _buttons; }
            set { _buttons = value; }
        }

        public void Add(Type childForm, string activationButtonText)
        {
            _formTypes.Add(childForm);
            _forms.Add(null);
            Button btn = new Button();
            btn.Text = activationButtonText;
            _buttons.Add(btn);
        }
    }
}
